package org.jeecg.modules.product.risk.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.product.risk.entity.TbBaseMeasuresTaskRecord;

/**
 * @Description: 风险排查记录
 * @Author: jeecg-boot
 * @Date:   2024-04-29
 * @Version: V1.0
 */
public interface TbBaseMeasuresTaskRecordMapper extends BaseMapper<TbBaseMeasuresTaskRecord> {

    List<Map> countForThisWeekTaskRecordByUsername(@Param("username") String username);

    List<TbBaseMeasuresTaskRecord> countForTimeFrame(@Param("nodeType") String nodeType);

    List<TbBaseMeasuresTaskRecord> queryPageListBylistCompositeCondition(Page<TbBaseMeasuresTaskRecord> page,@Param("checkStatus") String checkStatus, @Param("nodeType") String nodeType);

    List<Map> countForThisMonthTaskRecord();

    List<Map> countByRiskDeviceAndCheckStatus(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("riskDeviceId") String riskDeviceId);
}
